package com.study.demoevent.event.dto;

import org.springframework.context.ApplicationEvent;

/**
 * @Name: MyEnvent
 * @Description: java类作用描述
 * @Author: yn
 * @CreateDate: 2022/9/5 16:41
 * @Remark: 特殊说明
 * @Version: 1.0
 */
public class MyEvent extends ApplicationEvent {
	public MyEvent(Object source, String name){
		super(source);
		this.name=name;
	}
	private String name;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Override
	public String toString() {
		return "MyEvent{" +
				"name='" + name + '\'' +
				'}';
	}
}
